from django.db import models
from django.contrib.auth.models import User

class Profile(models.Model):
    user = models.OneToOneField(User)
    name = models.CharField(max_length=200, blank=True)

    #realname = models.CharField(max_length=100, blank=True)
    #desc = models.CharField(max_length=200, blank=True);
    #sex = models.PositiveIntegerField(default=0);
    #age = models.PositiveIntegerField(default=0);
    #icon = models.PositiveIntegerField(default=0);
    #job = models.PositiveIntegerField(default=0);
    #uuid = models.PositiveIntegerField(default=0);
    #mobile = models.PositiveIntegerField(default=0);
    #building = models.CharField(max_length=200);
    #usertype = models.PositiveIntegerField(default=0);

    def __unicode__(self):
        return self.name or unicode(self.user)

